<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Course extends Model
{
    public function teacher()
    {

        return $this->hasOne(Admins::class,'id','admins_id');
    }

    public function category()
    {
        return $this->hasOne(CourseCategory::class,'id','course_category_id');
    }

    public function cate()
    {
        return $this->hasOne(CourseCategory::class,'id','course_category_id');
    }

}
